<?php $paramHtml='';$groupTitHtml=$groupStr='';$showGroupTit=count($ZMODEL['configData'])>1||$ZMODEL['configData']&&($ZMODEL['configData'][0]["name"]||$ZMODEL['configData'][0]["name"]==='0')? true:false;foreach($ZMODEL['configData']as$group){$groupTitHtml.='<li><a href="javascript:void(0);">'.$group['name'].'</a></li>';$groupPartialStr='';foreach($group['sections']as$section){$sectionStr='';if(!empty($section['params'])){foreach($section['params']as$param){$sectionStr.=$param['html'];}if(isset($section['no_section'])&&$section['no_section']){$groupPartialStr.=$sectionStr;continue;}if($section['folded']){$foldedStyle=' style="display:none;"';}else{$foldedStyle='';}$sectionStr=<<<S
<div class="sectionGroup">
	<div class="sectionNav"><h3><span class="titIcon"></span>{$section['name']}</h3></div>
	<div class="sectionContent"{$foldedStyle}>$sectionStr</div>
</div>
S;
$groupPartialStr.=$sectionStr;}}$groupPartialStr=<<<S
<div class="groupPanel">
	<div class="section">{$groupPartialStr}</div>
	<div class="opt">
		<div class="blackBtn saveBtn"><button type="button">保存</button></div>
		<div class="cancleBtn">取消</div>
	</div>
</div>
S;
$groupStr.=$groupPartialStr;}if(!$groupStr){$paramHtml="没有可设置的选项";}else{$nStr=$showGroupTit ?"<ul class=\"groupNav\">{$groupTitHtml}</ul>":"";$paramHtml=sprintf('<div class="group">%s<div class="groupPanels">%s<div></div>',$nStr,$groupStr);}$cparamDialogFile=Zmsun\System\System::adminDataDir().'copen_param_dialog_config.php';$dialogData=[];if(file_exists($cparamDialogFile)){if(!is_array($dialogData=include$cparamDialogFile)){$dialogData=[];}}?> <!DOCTYPE html><html lang="zh"><head><meta charset="utf-8"><title>模块编辑</title><link rel="stylesheet" type="text/css" href="/i/d/css/common.css"><link rel="stylesheet" type="text/css" href="/v/admin/g/css/button.css"><link rel="stylesheet" type="text/css" href="/v/admin/g/css/dialog.css"><link rel="stylesheet" type="text/css" href="<?php echo$this->assetsUri()?>/css/default.css"><!--[if lt IE 9]><script type="text/javascript" src="/i/d/js/html5shiv-printshiv.js"></script><script type="text/javascript" src="/i/d/js/json2.js"></script><![endif]--><script type="text/javascript" src="/i/d/js/jquery.js"></script><script type="text/javascript" src="/i/d/js/zmsun/zmsunwidget.js"></script><script type="text/javascript" src="/i/d/js/zmsun/zmsundialog.js"></script><script type="text/javascript" src="/i/d/js/zmsun/zmsunaccordion.js"></script><script type="text/javascript" src="/i/d/js/zmsun/zmsunslider.js"></script><script type="text/javascript" src="/i/d/js/zmsun/zmsun_assist.js"></script><script type="text/javascript" src="<?php echo$this->assetsUri()?>/js/default.js"></script></head><body><div id="zmsun_params"><input type="hidden" name="__zmsun_adminBaseUrl" value="<?=$this->baseUri ?>"><input type="hidden" name="__zmsun_cparam_dialog_config" value="<?php echo htmlspecialchars(json_encode($dialogData))?>"><input type="hidden" name="__zmsun_module_id" value="<?php echo$_GET['id'];?>"><input type="hidden" name="__zmsun_module_instance_name" value="<?php echo$_GET['config'];?>"><div class="gUseTWen"><a class="it" target="_blank" href="http://www.zm345.com/help/view?id=25"><img src="<?=$this->assetsUri()?>/img/wen16-16.png">使用帮助</a></div><?php print$paramHtml;?> </div><div class="componentParamDialog hidden"><iframe frameborder="0"></iframe></div><div class="navigatorDialog hidden"><iframe frameborder="0"></iframe></div></body></html>